-- GENERATED SPELL FOR [Vicious Gray Bear] --


function spell0_2354(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2354', 550, 1)
end

function spell1_2354(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2354', 0, 1)
end

function spell2_2354(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2354', 0, 1)
end

function spell3_2354(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(53526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2354', 0, 1)
end

function Sorts_2354(pUnit, Event)
local choix_sorts_2354 = math.random(0, 3)
if choix_sorts_2354 == 0 then
pUnit:RegisterEvent('spell0_2354', 1, 1)
end
if choix_sorts_2354 == 1 then
pUnit:RegisterEvent('spell1_2354', 1, 1)
end
if choix_sorts_2354 == 2 then
pUnit:RegisterEvent('spell2_2354', 1, 1)
end
if choix_sorts_2354 == 3 then
pUnit:RegisterEvent('spell3_2354', 1, 1)
end
end

function mob2354_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2354', math.random(1500, 3000), 1)
end

function mob2354_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2354_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2354_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2354, 1, 'mob2354_Action')
RegisterUnitEvent(2354, 2, 'mob2354_Leave')
RegisterUnitEvent(2354, 3, 'mob2354_Kill')
RegisterUnitEvent(2354, 4, 'mob2354_Die')
